const path = require('path')

const index = path.join(__dirname,'1.txt')
console.log(index);
const index2 = path.basename(path.join(__dirname,'/成绩.txt'),'.txt')
console.log(index2);